﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="WineCellar.Web.Views.Login.Index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="login">
    <h1>Login</h1>
    <p>Please enter you user name and password</p>
    
    <% if(ViewData["ErrorMessage"] != null){%>
    <div class="error">
		<p><%= Html.Encode(ViewData["ErrorMessage"])%></p>
    </div>
    <%} %>
    
    <fieldset>
		<form action="" method="post">
		
		<p><label>User Name</label><input id="UserName" name="UserName" type="text" value="<%= ViewData["UserName"] %>" /></p>
		<p><label>Password</label><input id="Password" name="Password" type="password" /></p>
		
		<p class="btn"><input type="submit" value="Login" /></p>
    
		</form>
    </fieldset>
    
    </div>
</asp:Content>
